package com.dbgs.insurance.insuredperson.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;

import com.dbgs.insurance.insuredperson.models.MyApplyModel;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;

public class MyApplyListAdapter extends RecyclerArrayAdapter<MyApplyModel> {

    public MyApplyListAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new MyApplyListHolder(parent);
    }

    @Override
    public void OnBindViewHolder(BaseViewHolder holder, int position) {
        super.OnBindViewHolder(holder, position);
        MyApplyListHolder myApplyListHolder = (MyApplyListHolder) holder;
        myApplyListHolder.setData(getItem(position));
    }
}
